GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 59d732...3562ec )
by James
28:30 queued 12:37
created

$(document).ready   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
/*
2
 * edit.js
3
 * Copyright (c) 2017 [email protected]
4
 *
5
 * This file is part of Firefly III.
6
 *
7
 * Firefly III is free software: you can redistribute it and/or modify
8
 * it under the terms of the GNU General Public License as published by
9
 * the Free Software Foundation, either version 3 of the License, or
10
 * (at your option) any later version.
11
 *
12
 * Firefly III is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 * GNU General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU General Public License
18
 * along with Firefly III.  If not, see <http://www.gnu.org/licenses/>.
19
 */
20
21
/** global: what */
22
23
$(document).ready(function () {
24
    "use strict";
25
26
    $.getJSON('json/categories').done(function (data) {
27
        $('input[name="category"]').typeahead({source: data});
28
    });
29
30
    $.getJSON('json/tags').done(function (data) {
31
        var opt = {
32
            typeahead: {
33
                source: data,
34
                afterSelect: function () {
35
                    this.$element.val("");
36
                }
37
            }
38
        };
39
        $('input[name="tags"]').tagsinput(
40
            opt
41
        );
42
    });
43
});